import Vue from 'vue'
import App from './App'
import store from './store/index'
import i18n from './lang/index'
import uView from "uview-ui";
import Web3 from 'web3'
import util from '@/common/util.js'
import getAjax from './API/getAjax.js'
import postAjax from './API/postAjax.js'
import fech from './API/fech.js'
import postFu from './API/postFu.js'
Vue.prototype.$postAjax=postAjax;
Vue.prototype.$getAjax = getAjax;
Vue.prototype.$fech=fech;
Vue.prototype.$postFu=postFu;
Vue.prototype.$util = util;


Vue.config.productionTip = false
Vue.prototype.$store = store;
Vue.prototype._i18n = i18n;
Vue.prototype._Web3 = Web3
Vue.use(uView);
Vue.mixin({
  onShow() {
    let setTitle = 'Keep Rising'
    // #ifdef H5
    document.title = setTitle
    // #endif
  }
})
App.mpType = 'app'

const app = new Vue({
    ...App,
	Web3
})
app.$mount()
